package com.corpgovernment.travelstandard.enums;

/**
 * 差标不限类型
 * @author dlz
 * @since 2023/6/19
 */
public enum TravelUnLimitedTypeEnum {
    RESERVE("Reserve"),
    AMOUNT("Amount"),
    ALL("ALL"),
    ;

    private final String value;

    TravelUnLimitedTypeEnum(String value) {
        this.value = value;
    }

    /**
     * 是否舱等不限
     */
    public static boolean isUnLimitReserve(String unLimitType) {
        return RESERVE.value.equals(unLimitType) || ALL.value.equals(unLimitType);
    }

    /**
     * 是否舱等不限
     */
    public static boolean isUnLimitAmount(String amount) {
        return AMOUNT.value.equals(amount) || ALL.value.equals(amount);
    }
}
